<<<<<<< HEAD:page/group/group.js
// page/group/group.js
=======
// page/cart/cart.js
const http = require('../../http.js')
const api = require('../../jieko.js')
>>>>>>> origin/GoWuChe:page/cart/cart.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    item1:{},
    item2: [],
    item3: [],
    item4: [],
    item5: [],
    item6: [],
    item7: [],
    item8: []
  },
  gitapp(){
    let data={
      customerId: '589',
      shopId: '18',
      storeId: '56200',
      teminal: 2,
      goodsType: "",
      quantity: "",
    }
    http(api.datej,data,"post").then(res=>{
      console.log(res)
      if (res.statusCode === 200) {
        this.setData({
          item1: res.data.result.selfOperatedCart.goodsCarQueryList[0],
          item2: res.data.result.selfOperatedCart.goodsCarQueryList[0].goodsList,
        })
      }
      console.log(this.data.item1)
      console.log(this.data.item2)
    })
  },
  gittappd(){
    let data = {
      customerId: '589',
      shopId: '18',
      storeId: '56200',
      teminal: 2,
    }
    http(api.datek,data,"post").then(res => {
      console.log(res)
      if (res.statusCode === 200) {
        this.setData({
         
        })
      }
      console.log(this.data.item3)
    })
  },
  gitclose(){
    wx.navigateTo({
      url:'../close/close'
    })
  },
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    
  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {
    this.gitapp()
    this.gittappd()
  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {

  }
})